package jnpf.zc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jnpf.zc.model.zcglzcdjinfo.ZcglZcdjInfoInfoPoiDTO;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
/**
 *
 * 资产登记面积信息
 * @版本： V3.2.0
 * @版权： 智果云科技（https://www.jnpfsoft.com）
 * @作者： JNPF开发平台组
 * @日期： 2024-12-19
 */
@Data
@TableName("zcgl_zcdj_area")
public class ZcglZcdjAreaEntity  {
    @TableId("F_ID")
    private String id;

    @TableField("F_CREATORUSERID")
    private String creatoruserid;

    @TableField("F_CREATORTIME")
    private Date creatortime;

    @TableField("F_DESCRIPTION")
    private String description;

    @TableField("F_PARENTID")
    private String parentId;

    @TableField("BUILDING_AREA")
    private BigDecimal buildingArea;

    @TableField("LAND_AREA")
    private BigDecimal landArea;

    @TableField("SHARED_LAND_AREA")
    private BigDecimal sharedLandArea;

    @TableField("BUILDING_MEASUREMENT_AREA")
    private BigDecimal buildingMeasurementArea;

    @TableField("LAND_SURVEY_AREA")
    private BigDecimal landSurveyArea;

    @TableField("EXCLUSIVE_AREA")
    private BigDecimal exclusiveArea;

    @TableField("SHARED_AREA")
    private BigDecimal sharedArea;

    @TableField("CHANGE_TIME")
    private Date changeTime;

    @TableField("CHANGE_REASON")
    private String changeReason;

    public ZcglZcdjAreaEntity () {

    }

    public ZcglZcdjAreaEntity (ZcglZcdjInfoInfoPoiDTO dto) {
        this.parentId = dto.getId();
        this.buildingArea = dto.getBuildingArea();
        this.landArea = dto.getLandArea();
        this.sharedLandArea = dto.getSharedLandArea();
        this.buildingMeasurementArea = dto.getBuildingMeasurementArea();
        this.exclusiveArea = dto.getExclusiveArea();
        this.sharedArea = dto.getSharedArea();
    }

}
